import Mock from 'mockjs';


export default {
    className: "Sys.Model.TagManage",
    queryData: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "recordCount": 38,
                "pageCount": 1,
                "pageIndex": 1,
                "pageSize": 20,
                "queryResult|38": [{
                    "keyID|1000-9999": 1000,
                    "tagName": "广场舞合辑一二三四五",
                    "status": "上线",
                    "assetsNum": /^[0-9][0-9]$/,
                    "version": 1,
                    "createTime": Mock.mock('@now'),
                    "lastUpdatedBy": "admin",
                    "lastUpdateTime": Mock.mock('@now'),
                }]
            }
        });
    },
    queryByKeyID: function(postData) {
        return Mock.mock({
            isSuccess: "Y",
            reason: "",
            message: [],
            "data": {
                "keyID|1000-9999": 1000,
                "tagName": Mock.mock('@ctitle'),
                "assetsNum": /^[0-9][0-9]$/,
                "status": Mock.mock('@ctitle'),
                "version": 1,
            }
        });
    },
};
